package cn.com.qtgl.apis.builtin.model.vo;

import cn.melonlib.authentication.model.entity.Tenant;
import cn.melonlib.cores.commons.model.entity.ApiEntity;
import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ModelComment("部门信息")

@Data
@EqualsAndHashCode(callSuper = true)
public class Department extends StringIdEntity implements ApiEntity {

    @ModelComment("名称")
    private String name;

    @ModelComment("编号")
    private String code;

    @ModelComment("上级部门")
    private String parent;

    @ModelComment("标签")
    private String tags;

    @ModelComment("是否独立部门")
    private Boolean independent;

    @ModelComment("租户ID")
    private String tenantId;

    @ModelComment("当前时间")
    private Long timestamp;

    @ModelComment("是否禁用")
    private Boolean disabled;

    @ModelComment("来源")
    private String source;

    @ModelComment("数据源")
    private String dataSource;

    @ModelComment("描述")
    private String description;

//    @ModelComment("扩展信息")
//    private String meta;

    @ModelComment("节点类型")
    private String treeType;

    @ModelComment("部门类型")
    private String type;

    @ModelComment("是否激活")
    private Boolean active;

    @ModelComment("激活时间")
    private Long activeTime;

    @ModelComment("排序")
    private Integer index;

    @ModelComment("创建时间")
    private String createTime;

    @ModelComment("租户")
    private Tenant tenant;
}
